package org.dromara.web.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.web.domain.Market;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Market.class)
public class MarketVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "id")
    private Long id;

    @ExcelProperty(value = "公司名称")
    private String cname;

    @ExcelProperty(value = "行业分类")
    private String category;

    @ExcelProperty(value = "股票代码")
    private String symbol;

    @ExcelProperty(value = "最新价")
    private BigDecimal price;

    @ExcelProperty(value = "涨跌额")
    private BigDecimal diff;

    @ExcelProperty(value = "涨跌幅")
    private BigDecimal chg;

    @ExcelProperty(value = "昨收")
    private BigDecimal preclose;

    @ExcelProperty(value = "今开")
    private BigDecimal open;

    @ExcelProperty(value = "最高价")
    private BigDecimal high;

    @ExcelProperty(value = "最低价")
    private BigDecimal low;

    @ExcelProperty(value = "振幅")
    private BigDecimal amplitude;

    @ExcelProperty(value = "成交量")
    private Long volume;

    @ExcelProperty(value = "市值")
    private BigDecimal mktcap;

    @ExcelProperty(value = "上市地")
    private String market;

    @ExcelProperty(value = "时间")
    private String time;
}
